package com.kakame.tibbers.admin.controller.sys;

import com.jfinal.aop.Duang;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Page;
import com.kakame.tibbers.common.models.AuthUser;
import com.kakame.tibbers.common.vo.PageParam;
import com.kakame.tibbers.service.auth.UserService;

public class UserController extends Controller {
	
	private UserService userService = Duang.duang(UserService.class);
	
	/**
	 * 用户管理页面
	 * @auth ex-hejm
	 * @date 2018年11月26日 下午4:23:15
	 */
	public void to() {
		renderTemplate("list.html");
	}
	
	public void list() {
		PageParam pageParam = getBean(PageParam.class, "");
		Page<AuthUser> page = userService.page(pageParam);
		renderJson(page);
	}
}
